<template>
<div class="shenhe">
<h2>简历审核</h2>
<a-card>
    <h4>简历审核意见：</h4>
  <a-textarea placeholder="Basic usage" :rows="4"  v-model="content" />
    <a-radio-group name="radioGroup" :default-value="1" v-model="picked">
    <a-radio :value="1" v-model="pas"> 
      通过
    </a-radio>
    <a-radio :value="2" v-model="reject">
      驳回
    </a-radio>
  </a-radio-group>
  <br>
  <br>
  <a-button @click="submit">提交</a-button>
</a-card>
</div>
</template>

<script>
export default {
  data(){
    return{
      content:'',
      picked:'',
      pas:'',
      reject:''
    }
  },

  methods: {
    submit:function(){
      if(this.content==""){
        alert("必须填写内容！");
        return false;
      }
      if(this.picked === this.pas){
         alert("通过");
      }
      if(this.picked === this.reject){
         alert("驳回");
      }
    }
  },
    
}
</script>



<style scoped>
.shenhe{
    width: 500px;
    margin: auto ;
}
h4{
    margin-right: 280px;
}
.ant-card{
    background-color: rgb(221, 231, 221);
}
.ant-input{
    width: 400px;
    height: 300px;
    margin-bottom: 20px;
}
</style>
